﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class cms_Admin_Timesheet_createtimesheet : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        this.Txtstarttime.Text = DateTime.Now.Day.ToString() + "/" + DateTime.Now.Month.ToString() + "/" + DateTime.Now.Year.ToString();
        this.txtendtime.Text = DateTime.Now.Day.ToString() + "/" + DateTime.Now.Month.ToString() + "/" + DateTime.Now.Year.ToString();
        for (int i = 00; i <= 24; i++)
        {
            cmbstartgio.Items.Add(i.ToString()+"h");
            cmbendgio.Items.Add(i.ToString() + "h");
        }
        for (int j = 0; j <=60; j++)
        {
            cmbstartphut.Items.Add(j.ToString()+"p");
            cmbendphut.Items.Add(j.ToString() + "p");
        }
    }
    protected void Cldstarttime_SelectionChanged(object sender, EventArgs e)
    {
        DateTime datetime = Cldstarttime.SelectedDate;
        this.Txtstarttime.Text = datetime.Day + "/" + datetime.Month + "/" + datetime.Year;
        this.Cldstarttime.Visible = false;
    }
    protected void Imgbtnstarttime_Click(object sender, ImageClickEventArgs e)
    {
        this.Cldstarttime.Visible = !this.Cldstarttime.Visible;
    }
    protected void cldendtime_SelectionChanged(object sender, EventArgs e)
    {
        DateTime datetime = cldendtime.SelectedDate;
        this.txtendtime.Text = datetime.Day + "/" + datetime.Month + "/" + datetime.Year;
        this.cldendtime.Visible = false;
    }
    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        this.cldendtime.Visible = !this.cldendtime.Visible;
    }
}